package com.dj.common.web.vo;

import com.dj.common.web.service.ValueObject;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class PageAndSortVo<V> implements ValueObject {

	private static final long serialVersionUID = 1L;
	public static final String SUM_PD_NAME = "sumPd";

	/**
	 * 对应表中的起始记录
	 */
	private int offset;

	/**
	 * 要取的记录数，pageNumber
	 */
	private int limit=10;
	/* sort should be like "ID DESC", "NAME ASC" */
	private String sort;
	private boolean count = false;

	private V vo;
	private int totalResult;

}
